package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}

type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}

type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}

type Wisdom struct {
	gorm.Model
	WisCode string `gorm:"type:varchar(50)"` //仓库编号
	WisName string `gorm:"type:varchar(50)"` //仓库名称
	WisType string `gorm:"type:varchar(50)"` //仓库类型
}

type WisOrder struct {
	gorm.Model
	OrderCode    string `gorm:"type:varchar(50)"` //入库单号
	OrderProvide string `gorm:"type:varchar(50)"` //供应商
	OrderStatus  string `gorm:"type:varchar(50)"` //入库状态
	Wid          int    `gorm:"type:int"`         //仓库id
}

type WisOrderList struct {
	OrderId      int    `gorm:"type:int"`         //订单id
	WisCode      string `gorm:"type:varchar(50)"` //仓库编号
	WisName      string `gorm:"type:varchar(50)"` //仓库名称
	WisType      string `gorm:"type:varchar(50)"` //仓库类型
	OrderCode    string `gorm:"type:varchar(50)"` //入库单号
	OrderProvide string `gorm:"type:varchar(50)"` //供应商
	OrderStatus  string `gorm:"type:varchar(50)"` //入库状态
}
